package cn.com.dhcc.app.pub.module.codematic.vo;

import java.util.Map;

public class Col {
	private String type; //0:String 1:Integer 3:Date
	private String name; //字段名
	private String nameCN; //字段显示名
	private boolean show; //是否在列表显示
	private boolean search; //是否列表搜索项

	private boolean formField;//是否表单字段，如果是，则需要填写
	private String formType; //表单类型
	private Map<String, String> optionMap; //当表单为select时，下拉选框的名值对
	private boolean validate; //是否需要进行表单校验
	private boolean ajaxCheck;//是否需要进行AJAX表单校验

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNameCN() {
		return nameCN;
	}

	public void setNameCN(String nameCN) {
		this.nameCN = nameCN;
	}

	public boolean isShow() {
		return show;
	}

	public void setShow(boolean show) {
		this.show = show;
	}

	public boolean isSearch() {
		return search;
	}

	public void setSearch(boolean search) {
		this.search = search;
	}

	public boolean isFormField() {
		return formField;
	}

	public void setFormField(boolean formField) {
		this.formField = formField;
	}

	public String getFormType() {
		return formType;
	}

	public void setFormType(String formType) {
		this.formType = formType;
	}

	public Map<String, String> getOptionMap() {
		return optionMap;
	}

	public void setOptionMap(Map<String, String> optionMap) {
		this.optionMap = optionMap;
	}

	public boolean isValidate() {
		return validate;
	}

	public void setValidate(boolean validate) {
		this.validate = validate;
	}

	public boolean isAjaxCheck() {
		return ajaxCheck;
	}

	public void setAjaxCheck(boolean ajaxCheck) {
		this.ajaxCheck = ajaxCheck;
	}

	@Override
	public String toString() {
		return "Col [type=" + type + ", name=" + name + ", nameCN=" + nameCN + ", show=" + show + ", search=" + search
				+ ", formField=" + formField + ", formType=" + formType + ", optionMap=" + optionMap + ", validate="
				+ validate + ", ajaxCheck=" + ajaxCheck + "]";
	}
}
